package com.gjp.service;

import com.gjp.entity.UserEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by 郭金鹏 on 2017/5/29.
 */
public interface UserService {

    public UserEntity findOne(Long id);

    public List<UserEntity> findAll();

    public Page<UserEntity> findAllByPage(Pageable pageable);

    public UserEntity save(UserEntity userEntity);

    public void delete(Long id);
}
